package com.yonyou.pmclouds.projectpart.upgrade.service;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.projectpart.entity.ProjectPartVO;

import java.util.List;

/**
 * 工程部位升级业务单据查询接口
 */
public interface IProjectPartBusinessOperator {
    /**
     * 业务单据升级前构造工程部位VO
     *
     * @return
     */
    List<ProjectPartVO> constructProjectPartVOsOfBill();

    /**
     * 设置业务单据的工程部位PkProjectPart属性
     *
     * @param insertedVOs
     * @return
     */
    void updatePkProjectParts(List<ProjectPartVO> insertedVOs) throws BusinessException;

    /**
     * 获取业务单据类型
     *
     * @return
     */
    String getOperateBillType();
}
